TARGETS = main.byte main.native
LIBS = str

all: main.native
	mv $? extml && cp extml /srv/www/d4.sep/cgi-bin

${TARGETS}: *.ml
	ocamlbuild -cflag -rectypes -no-links -build-dir .build -libs ${LIBS} $@ && cp .build/$@ $@

clean:
	rm -rf .build && rm -f main *.o *.cmo *.cmx *.cmi parser.ml parser.mli lexer.ml a.out *.native *.byte ${TARGETS} main extml

